.navbar {
  background: var(--bg-color);

  nav {
    border-bottom: var(--border);
  }

  .logo-divider {
    display: flex;
    &:after {
      /* Change to "/" when needed */
      content: '';
      font-family: 'Berkeley Mono', monospace;
      font-size: 0.875rem;
      line-height: 1.38;
      letter-spacing: -0.035rem;
      color: var(--border-color);
      align-self: center;
      padding: 0 16px;
    }
  }

  .daytona-logo {
    display: flex;

    & svg {
      width: 115px;
      height: 24px;
    }

    & svg path {
      fill: var(--primary-text-color);
    }

    & svg rect {
      stroke: var(--primary-text-color);
    }

    @include for-hover-state {
      &:hover svg {
        opacity: 0.6;
      }
    }

    @include for-tablet-screen-sizes {
      display: grid;
      grid-template-columns: 24px 1fr;
      align-items: center;
      svg {
        width: 26px;
        height: 26px;
      }
    }
  }
  .dotfiles-logo {
    font-family: 'Berkeley Mono', monospace;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    color: var(--primary-text-color);
    padding-right: 4px;

    & svg {
      margin-right: 0.5rem;
      > path,
      circle {
        transition: 0.6s;
        stroke: var(--hover-color);
      }
    }
    @include for-tablet-screen-sizes {
      > svg {
        display: none;
      }
    }

    @include for-hover-state {
      &:hover {
        opacity: 0.6;
      }
    }
  }

  .navbar-item {
    font-family: 'Berkeley Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--primary-text-color);
    padding-right: 8px;
    padding-left: 8px;

    @include for-hover-state {
      &:hover {
        opacity: 0.6;
      }
    }
  }

  .desktop-only {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 0;
    max-width: 1248px;
    margin: auto;

    @include for-tablet-screen-sizes {
      display: none;
    }
  }

  .nav__items_menu {
    display: flex;
    font-family: 'Berkeley Mono', monospace;
    font-size: 0.875rem;
    text-transform: uppercase;
    list-style: none;
    text-decoration: none;
    line-height: 1.3;
    letter-spacing: -0.035rem;
    transition: 0.6s;
    &:before {
      content: '/';
      font-family: 'Berkeley Mono', monospace;
      font-size: 0.875rem;
      line-height: 1.38;
      letter-spacing: -0.035rem;
      color: var(--border-color);
      align-self: center;
      padding: 0 16px;
    }

    ul {
      display: flex;
      column-gap: 16px;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    a {
      @include for-hover-state {
        &:hover {
          color: var(--hover-color);
        }
      }
    }
  }
}

.nav__items_side_menu {
  display: flex;
  flex-shrink: 0;
  margin-left: auto;
  column-gap: 8px;
  align-items: center;

  .nav__item_search {
    @include for-tablet-screen-sizes {
      border: var(--border);
    }

    @include for-hover-state {
      &:hover button {
        cursor: pointer;
      }
    }

    .nav__link {
      display: inline;
      vertical-align: middle;
      padding: 7px 0;

      & svg {
        @include for-tablet-screen-sizes {
          width: 12px;
          height: 12px;
        }

        path {
          transition: 0.6s;
          fill: var(--primary-text-color);
        }
      }

      @include for-hover-state {
        &:hover svg path {
          opacity: 0.6;
          transition: 0.6s;
          cursor: pointer;
        }
      }

      @include for-tablet-screen-sizes {
        display: grid;
        justify-content: center;
        align-items: center;
        padding: 1px 0 0;
        width: 29px;
        height: 29px;
      }

      @include for-mobile-screen-sizes {
        width: 28px;
        height: 28px;
        justify-content: center;

        & svg {
          width: 11px;
          height: 11px;
        }
      }
    }
  }

  .nav__item_search,
  .nav__item_hamburger__menu {
    a {
      text-align: center;
      justify-content: center;
      line-height: 0;
      text-transform: uppercase;
    }
  }

  .nav__item_hamburger__menu {
    display: flex;
    align-items: center;
  }

  .call,
  .github {
    border-radius: 3px;
    transition: 0.6s;

    a {
      font-size: 0.875rem;
      font-family: 'Berkeley Mono', monospace;
      font-weight: 400;
      line-height: 2.14;
      padding: 0 17px;
      border-radius: 3px;
      height: 30px;
      display: inline-block;
      text-transform: none;
    }
  }

  .locale-selector-wrapper {
    position: relative;
    display: inline-block;
    padding: 1px 0;
  }

  .locale-selector {
    border-radius: 3px;
    transition: 0.6s;
    background: var(--secondary-btn-color);
    border: 1px solid var(--secondary-btn-color);
    color: var(--white);
    font-family: 'Berkeley Mono', monospace;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 2.14;
    height: auto;
    padding: 0 17px;
    text-transform: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    @include for-pc-screen-sizes {
      min-width: 80px;
    }

    @include for-laptop-screen-sizes {
      min-width: 80px;
    }

    @include for-tablet-screen-sizes {
      width: 100%;
      justify-content: center;
    }

    @include for-mobile-screen-sizes {
      width: 100%;
      justify-content: center;
    }

    @include for-hover-state {
      &:hover {
        background: var(--secondary-hover-color);
        border-color: var(--secondary-hover-color);
      }
    }
  }

  .locale-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--block-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 2px;

    @include for-mobile-screen-sizes {
      top: auto;
      bottom: 100%;
      margin-top: 0;
      margin-bottom: 2px;
    }
  }

  .locale-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: var(--block-bg-color);
    color: var(--secondary-text-color);
    border: none;
    font-family: 'Berkeley Mono', monospace;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;

    &:first-child {
      border-top-left-radius: 3px;
      border-top-right-radius: 3px;
    }

    &:last-child {
      border-bottom-left-radius: 3px;
      border-bottom-right-radius: 3px;
    }

    &.active {
      background: var(--secondary-btn-color);
      color: var(--white);
    }

    @include for-hover-state {
      &:hover {
        background: var(--cta-surface-neutral-primary);
        color: var(--primary-text-color);
      }
    }
  }

  .call {
    background: #007fff33;
    padding: 1px 0;

    a {
      color: #007fff;
    }

    @include for-hover-state {
      &:hover {
        background: #007fff99;

        a {
          color: #fff;
        }
      }
    }
  }

  .github {
    background: var(--block-bg-color);
    border: var(--border);
    border-color: var(--block-bg-color);

    a {
      min-width: 100px;
      display: flex;
      gap: 8px;
      align-items: center;
      color: var(--primary-text-color);
    }

    & svg path {
      transition: 0.6s;
      fill: var(--secondary-text-color);
    }

    @include for-hover-state {
      &:hover {
        background: var(--secondary-text-color);
        border-color: var(--secondary-text-color);

        a {
          color: var(--white);
        }

        & svg path {
          fill: var(--white);
        }
      }
    }

    img {
      display: block;
    }
  }
}
